Component({

  properties: {
    openType: {
      type: String,
      default: "lo",
    },
    imagePath: {
      type: String,
    },
  },
  data: {
    avatarTextureId: 'white',
    backImagePath: 'https://picsum.photos/100/200',
    url: 'https://picsum.photos/200/200',
    defaultUrl: 'https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/waifu.png',
  },

  methods: {
    handleAssetsProgress: function ({ detail }) {
      console.log('assets progress', detail.value);
      // this.triggerEvent('assetsProgress', this.scene);
    },
    handleAssetsLoaded: function ({ detail }) {
      console.log('assets loaded', detail.value);
      this.triggerEvent('assetsLoaded', this.scene);
    },
    handleReady: function ({ detail }) {
      this.scene = detail.value;
      console.log('frame handleReady......')
    },
    handleShare() {
      console.log('component handle share...')
      // this.scene.share.captureToDataURL();
      this.scene.share.captureToFriends();
    },
  }
})